<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

define('SEX_OPTION_MALE_ID', getConfig('male'));
define('SEX_OPTION_FEMALE_ID', getConfig('female'));

define('RECORD_PER_PAGE',24);

define('POINT_SUBTRACT_LISTING_PAGE', 1);
define('POINT_SUBTRACT_PROFILE_PAGE', 5);

define('POINT_ADD_CONNECT_PROFILE', 1);
define('POINT_ADD_EDIT_PROFILE', 30);

define('PERIOD_TIME', 86400*30);//86400*30

if(ENVIRONMENT == PYRO_DEVELOPMENT){
  define('MEDIA_SITE_URL','http://localhost/highescortstemp/highescorts/');  
}else{
  define('MEDIA_SITE_URL','http://www.highescorts.com/');   
}

define('MOBILE_VERSION',1);

function getConfig($gender){
	$ci = &get_instance();
	$ci->load->helper('file');
	$id = intval( read_file("./config/$gender.txt") );
	return $id;
}

function defineAccountType(){
	return array(
		'escort'	=>	'Escort',
		'commercial'	=>	'Commercial'
	);
}

function definePaymentType(){
	return array(
		'visa'		=> 'Visa credit card',
		'acm'		=>	'ABC'
	);
}

function paymentGatewayType(){
	return array(
		'wirebank'	=> language_translate('services_page_wirebank'),
		'credit'	=> language_translate('services_page_credit') 
	);
}

function escortApplyNumberArray(){
	$return_array = array();
	for($i=1;$i<=100;$i++){
		$return_array[$i] = $i;
	}
	return $return_array;
}

function allowExtensionVideoUpload(){
	return array('flv','mp4','ogg','webm','swf');
	/*
		Technically a browser could support flv via the HTML5 <video> element, but that's never going to happen. Browser support is thus:
		Firefox 3.6 - Ogg Theora
		Firefox 4.0 - Ogg Theora + WebM
		Chrome 5.0 - H.264 + Ogg Theora (WebM coming soon)
		Safari 4/5 - H.264
		Opera 10.5 - Ogg Theora (I believe WebM coming soon)
		IE9 - H.264 (supports WebM if installed by the user)
	*/
}

function allowExtensionPictureUpload(){
	return array('png','gif','jpg','jpeg');
}

function allowMaxFileSize(){
	//mb
	return 100;
}

function defineGTbillInfomation(){
    $arr_info = array();
    $arr_info['default'] = array(
        'SiteID'   => 'c9c95e94-9c2a-40e8-8abb-c75f326684ba',
        'MerchantID'    => 'c07210cd-1495-40fb-9596-ca8a093d6882'
    );
    
    return $arr_info;
}

/**
LOG ACTION DEFINED CONSTANT

log_action_register
log_action_login
log_action_logout
log_action_contract
log_action_send_message
log_action_delete_message
log_action_edit_account_info
log_action_edit_personal_info
log_action_edit_appareance
log_action_edit_services_info
log_action_edit_rate_info
log_action_edit_contact_info
log_action_upload_media
log_action_update_media
log_action_delete_media
log_action_reply_message
log_action_create_new_escort

**/

define('USER_COUNTRY_MANAGER', 'country-manager');
define('USER_PROVINCE_MANAGER', 'province-manager');
define('USER_CITY_MANAGER', 'city-manager');
define('USER_ADMIN', 'admin');
define('USER_COMMERCIAL', 'commercial');
define('USER_SUPPORT_LEVEL_1', 'support-level-1');
define('USER_SUPPORT_LEVEL_2', 'support-level-2');
define('USER_TYPE_ESCORT', 'escort');
define('USER_TYPE_AGENT', 'agent');
define('USER_TYPE_QUALITY_CONTROL', 'quality-control');
define('USER_TYPE_INVOICER', 'invoicer');

//Kind of expenses
define('EXPENSE_MANUAL', 'Manual');
define('EXPENSE_AUTO', 'Auto');

//Withdrawal user type
define('WITHDRAWAL_USER_BACKEND', 'backend');
define('WITHDRAWAL_USER_AGENT', 'agent');

//Kind of expenses
define('INVOICE_MANUAL', 'Manual');
define('INVOICE_AUTO', 'Auto');

define('LOG_ACTION_BACKEND', 'admin');
define('LOG_ACTION_FRONTEND', 'frontend');
define('PAID_EMAIL_TEMPLATE_SLUG', 'paid-email-template');

//Payment status
define('PAYMENT_STATUS_PAID', 'paid');
define('PAYMENT_STATUS_UNPAID', 'unpaid');